<?php

use Illuminate\Routing\Router;

Admin::routes();

Route::group([
    'prefix'        => config('admin.route.prefix'),
    'namespace'     => config('admin.route.namespace'),
    'middleware'    => config('admin.route.middleware'),
], function (Router $router) {

    $router->get('/', 'HomeController@index')->name('admin.home');
    $router->get('Config/index','ConfigController@index');
    $router->post('Config/indexSave','ConfigController@indexSave');
    $router->resource('Goods',GoodsController::class);
    $router->resource('Users',UsersController::class);
    $router->resource('Qrcode',QrcodeController::class);
    $router->resource('Userj',UserjController::class);
    $router->resource('Userd',UserdController::class);
    $router->resource('Setting',SettingController::class);
    $router->resource('OrdersTatal',OrdersTatalController::class);
    $router->post('Users/check','UsersController@check');
    $router->resource('Commission',CommissionController::class);
    $router->resource('Cash',CashController::class);
    $router->resource('Orders',OrdersController::class);
    $router->resource('Ordery',OrderyController::class);
    $router->resource('TaoBao',TaoBaoController::class);
    $router->resource('TaoBaoOrder',TaoBaoOrderController::class);
});
